package J9_26.empty;

public class Book {
	private int bookId;
	private String bookName;
	private String author;
	private float price;
	
	public Book(int bookId, String bookName, String author, float price)
	{
		this.bookId = bookId;
		this.bookName = bookName;
		this.author = author;
		this.price = price;
	}
	public int getBookId() {
		return bookId;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	
	public void print() {
		System.out.println("图书编号：" + bookId +" 图书名：" + bookName + " 作者：" + author + " 价格" + price);
	}
	
	

}
